import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class Config {
  Config({this.color = Colors.red, this.fontSize = 12.0});

  final Color color;
  final double fontSize;

  Config copyWith({Color? color, double? fontSize}) {
    return Config(color: color ?? this.color, fontSize: fontSize ?? this.fontSize);
  }
  @override
  bool operator ==(Object other) {
    if(other.runtimeType!=runtimeType) return false;
     other as Config;
    return color==other.color&&fontSize==other.fontSize;
  }

  @override
  int get hashCode => hashValues(color, fontSize);
}
